import { defineStore } from "pinia";
import request from "../api/request";

export const useStore = defineStore("main", {
  persist: {
    enabled: true,
  },
  state: () => {
    return {
      activeIndex: 0,
      // 当前文章
      currArticle: {
        title: "",
        content: "",
      },
    };
  },

  actions: {},
});
